<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>生产库存</title>
    <link rel="stylesheet" href="../../../../public/dist/css/layui.css" />
    <link rel="stylesheet" href="../../../../public/font/iconfont.css" />
    <link rel="stylesheet" href="../../../../css/twocss/commit.css" />
</head>

<body>
    <form class="layui-form" action="">
        <div class="select common">
            <div class="select-title">查询条件</div>
            <div class="select-con">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">产品名称:</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input manes" />
                        </div>
                    </div>
                </div>

                <div class="select-btn">
                    <div class="layui-bg-green comquery  querys">查询</div>
                    <div class="layui-bg-green comquery  resets">重置</div>
                </div>
            </div>
        </div>
    </form>

    <div class="common-padding">
        <table class="layui-hide" id="testdomess" lay-filter="testdome"></table>
    </div>
</body>

<!-- 里面的查看 -->
<script type="text/html" id="More">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
</script>

<!-- 查看的内容 -->
<script type="text/html" id="contentquery">
    <div class="select common">

        <div class="select-title" style="border-bottom:0px;background-color: #f3f3f3;">
            基本信息
        </div>
        {{each list}}
        <ul class="basis-h">

            <li>
                <label>产品名称:</label>
                <p>{{$value.productname}}</p>
            </li>
            <li>
                <label>批次:</label>
                <p>{{$value.batch}}</p>
            </li>
            <li>
                <label>库存重量:</label>
                <p>{{$value.stocknum}}</p>
            </li>
            <li>
                <label>末次入库数:</label>
                <p>{{$value.endinputnum}}</p>
            </li>
            <li>
                <label>末次入库时间:</label>
                <p>{{$value.endinputdate}}</p>
            </li>
            <li>
                <label>末次出库数:</label>
                <p>{{$value.endoutputnum}}</p>
            </li>
            <li>
                <label>末次出库时间:</label>
                <p>{{$value.endoutputdate}}</p>
            </li>
            <li>
                <label></label>
                <p class="empty-h"></p>
            </li>

        </ul>
        <div style="padding:10px  0  0 10px;"></div>
        <table class="layui-table">
            <thead>
                <tr>
                    <th></th>
                    <th style="text-align: center;">仓库名称</th>
                    <th style="text-align: center;">二级仓库名称</th>
                    <th style="text-align: center;">重量</th>
                    <th style="text-align: center;">生产日期</th>
                    <th style="text-align: center;">保质期</th>
                    <th style="text-align: center;">有效期至</th>
                    <th style="text-align: center;">状态</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td style="text-align: center;">{{$index}}</td>
                    <td style="text-align: center;">{{$value.storagename}}</td>
                    <td style="text-align: center;">{{$value.areaname}}</td>
                    <td style="text-align: center;">{{$value.weight}}/kg</td>
                    <td style="text-align: center;">{{$value.factorydate}}</td>
                    <td style="text-align: center;">{{$value.lifedate}}{{$value.lifedateunit}}</td>
                    <td style="text-align: center;">{{$value.effective}}</td>
                    <td style="text-align: center;">{{$value.stats}}</td>
                </tr>
            </tbody>
        </table>
        {{/each}}
    </div>
</script>

<script src="../../../../js/common/jquery.min.js"></script>
<script src="../../../../js/common/api.js"></script>
<script src="../../../../public/dist/layui.js" charset="utf-8"></script>
<script src="../../../../js/two/Hmonitoring/Hinventory.js"></script>
<script src="../../../../js/common/template-web.js"></script>

</html>